package com.example.demo.service.impl;

import com.example.demo.entity.Museum;
import com.example.demo.mapper.MuseumMapper;
import com.example.demo.service.MuseumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MuseumServiceImpl implements MuseumService {


    private final MuseumMapper museumMapper;

    @Autowired
    public MuseumServiceImpl(MuseumMapper museumMapper) {
        this.museumMapper = museumMapper;
    }

    @Override
    public Museum getMuseumIntro() {
        return museumMapper.getMuseumIntro();
    }
}
